import React from 'react'
import './index.css'
export default function PetTrait(props) {
  const {name,advantage,defect} = props
  return (
    <div className='petTrait-container' >
      <h3>{name}</h3>
      <p className='advantage'>优点：{advantage}</p>
      <p style={{color:'#017c4f'}}>缺点：{defect}</p>
    </div>
  )
}
